package com.knowledge.graph.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowledge.graph.model.entity.Video;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;


/**
 * @author jiwenlong
 * @version 1.0
 * @description: video的数据库操作
 * @date 2023/11/7 18:58
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {

    @Insert("insert into video(video_name,video_address,image_address) values(#{videoName},#{videoAddress},#{imageAddress})")
    @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")
    public int insert(Video video);
}
